//
// Created by bjliuyong on 2021/7/4.
//

#ifndef GC_DEBUG_H
#define GC_DEBUG_H

#include <stdarg.h>
#include <stddef.h>


#define ShouldNotCallThis()                                                  \
do {                                                                         \
  report_should_not_call(__FILE__, __LINE__);                                \
} while (0)

// error reporting helper functions
void report_vm_error(const char* file, int line, const char* error_msg,
                     const char* detail_msg = NULL);

void report_should_not_call(const char* file, int line);

#endif //GC_DEBUG_H
